package org.BooCrack.bookstore.model.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import javax.persistence.*;

@Table(name = "orders")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Orders {
    @Id
    @Column(name = "order_id")
    private String orderId;

    @Column(name = "user_id")
    private Integer userId;

    @Column(name = "payment")
    private String payment;

    @Column(name = "payment_type")
    private Integer paymentType;

    @Column(name = "status")
    private Integer status;

    @Column(name = "post_fee")
    private String postFee;

    @Column(name = "create_time")
    private Date createTime;

    @Column(name = "update_time")
    private Date updateTime;

    @Column(name = "order_mount")
    private Integer orderMount;

    @Column(name = "payment_time")
    private Date paymentTime;

    @Column(name = "end_time")
    private Date endTime;

    @Column(name = "close_time")
    private Date closeTime;

    @Column(name = "shipping_name")
    private String shippingName;

    @Column(name = "shipping_code")
    private String shippingCode;

    @Column(name = "buyer_message")
    private String buyerMessage;

    @Column(name = "buyer_rate")
    private Integer buyerRate;

}